package cn.xfdzx.android.apps.shop.model;


import cn.xfdzx.android.apps.shop.bean.AddAddressBeen;
import cn.xfdzx.android.apps.shop.bean.AgreementBeen;
import cn.xfdzx.android.apps.shop.contract.AddAddressContract;
import cn.xfdzx.android.apps.shop.contract.AgreementContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import io.reactivex.Flowable;

/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */
public class AgreementModel implements AgreementContract.Model {




    @Override
    public Flowable<AgreementBeen> agreement(String type) {
        return RetrofitClient.getInstance().getApi().agreement(  type);
    }

    @Override
    public Flowable<AgreementBeen> userAgreement() {
        return RetrofitClient.getInstance().getApi().userAgreement();
    }

    @Override
    public Flowable<AgreementBeen> privacyAgreement() {
        return RetrofitClient.getInstance().getApi().privacyAgreement();
    }

    @Override
    public Flowable<AgreementBeen> serviceAgreement() {
        return RetrofitClient.getInstance().getApi().serviceAgreement();
    }
}
